package com.glasses.business.utils;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.glasses.business.pay.com.ConstantKeys;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;

public class AppRegister extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		final IWXAPI msgApi = WXAPIFactory.createWXAPI(context, null);
		// 你的应用在微信上申请的app_id
		msgApi.registerApp(ConstantKeys.WxPay.APP_ID);
	}
}
